"""
@name : deco.py
@author : wenyao
@projectname: xsfh
"""
import time
def runtime(func):
    def inner():
        start = time.time()
        result = func()
        end = time.time()
        print(f"函数执行花费了{end-start}s")
        return  result
    return inner
